package wjh.mapper;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import wjh.pojo.Department;

import java.util.List;

@Repository
public interface ZlyDepartmentMapper {

    @Select("select * from department")
    List<Department> findAll();

    @Select("select department_name from department where id=#{id}")
    String findById(Integer id);
}
